package com.itheima.method1;

public class Demo4Method {
    public static void main(String[] args) {
        print(10, 20);
    }

    public static void print(int n, int m) {
        System.out.println(n+"到"+m+"的所有奇数为");
        for (int i = n; i < m; i++) {
            if (i % 2 == 1) {
                System.out.println(i);
            }
        }
    }
}
